package cn.anl.controller;

import cn.anl.pojo.HotComment;
import cn.anl.result.ApiResponse;
import cn.anl.service.CloudMusicService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author 安奈
 * @CreateTime 2024-07-11  19:38
 * @Desc TODO 接入网易云音乐
 */
@RestController
@RequestMapping("/openApi")
@Slf4j
public class CloudMusicController {
    @Resource
    private CloudMusicService cloudMusicService;
    @GetMapping("/hotComments")
    public ApiResponse<Object> getHotComments(){
        return ApiResponse.success(cloudMusicService.getHotComments());
    }

}
